#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d", &n);
    int i = n;
    float max = 0, min = 200.0, average = 0, sum = 0;
    while (i--)
    {
        float a = 0;
        scanf("%f", &a);
        if (a < min)
            min = a;
        if (a > max)
            max = a;
        sum += a;
    }
    average = sum / n;

    printf("%.2f %.2f %.2f", max, min, average);

    return 0;
}